const Router = require('koa2-router')
const router = new Router()

const userControll = require('./controller/user')


router.get('/user/get',userControll.getListController)

router.post('/user/add',userControll.addListController)

router.delete('/user/del',userControll.delListController)

router.put('/user/updata',userControll.updataListController)


router.post('/user/adduser',userControll.addUserController)

router.get('/user/getuser',userControll.getUserController)

router.delete('/user/deluser/:id',userControll.delUserController)
module.exports=router